package com.jinzhi.sys.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.jinzhi.sys.dao.RoleConsultationsDao;
import com.jinzhi.sys.domain.RoleConsultationsDO;
import com.jinzhi.sys.service.RoleConsultationsService;

import lombok.AllArgsConstructor;

import com.jinzhi.common.base.CoreServiceImpl;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2020-10-15 16:47:41 | lance</small>
 */
@Service
@AllArgsConstructor
public class RoleConsultationsServiceImpl extends CoreServiceImpl<RoleConsultationsDao, RoleConsultationsDO> implements RoleConsultationsService {

	public final RoleConsultationsDao roleConsultationsDao;
	@Override
	public void deleteByConsultationsId(Long consultationsId) {
		// TODO Auto-generated method stub
		roleConsultationsDao.removeByConsultationsId(consultationsId);
		return ;
	}

	@Override
	public void deleteListByConsultationsId(Long[] consultationsIds) {
		// TODO Auto-generated method stub
		for(Long id : consultationsIds)
		roleConsultationsDao.removeByConsultationsId(id);
		return ;
	}
	
	@Override
	public List<Long> listroleIdByConsultations(Long consultationsId) {
		// TODO Auto-generated method stub
		List<Long> roleIds=new ArrayList<Long>();
		roleIds=roleConsultationsDao.listroleIdByConsultations(consultationsId);
		return roleIds;
	}


}
